package com.fnzn.entranceGuard.entity.ths;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxf
 * @since 2019-01-22
 */
@Data
@TableName("ths_hour")
public class ThsHour extends Model<ThsHour> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("device_id")
    private String deviceId;
    @TableField("power_id")
    private String powerId;
    /**
     * 日期 20190101
     */
    private String date;
    /**
     * 时刻
     */
    private int hour;
    /**
     * 温度
     */
    private BigDecimal tem;
    /**
     * 最高温度
     */
    private BigDecimal maxTem;
    private BigDecimal minTem;
    /**
     * 湿度
     */
    private BigDecimal hum;
    private BigDecimal maxHum;
    private BigDecimal minHum;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ThsHour{" +
        ", id=" + id +
        ", deviceId=" + deviceId +
        ", powerId=" + powerId +
        ", date=" + date +
        ", hour=" + hour +
        ", tem=" + tem +
        ", hum=" + hum +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
